home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / t_os / gpen32k / source.exe / LIB / OSRC / OCONNECT.C < prev    next >
C/C++ Source or Header  |  1993-05-12  |  472b  |  26 lines

  1. /*
  2.     おこめ標準グラフィック関数
  3. */
  4.  
  5. #include    <stdarg.h>
  6. #include    <EGB.h>
  7. #include    <NORMLib.h>
  8.  
  9. extern char work[];
  10.  
  11. /*    connect(ポイント数,x1,y1, ... , PaintMode, Color );    */
  12. void connect(int s, ... )
  13. {
  14.     int i;
  15.     char pa[1024];
  16.     va_list ap;
  17.     WORD(pa ) = s;
  18.     va_start(ap, s);
  19.     for (i=0; i<s*2; i++)
  20.         WORD(pa+i*2+2) = va_arg(ap, int);
  21.     EGB_paintMode(work, va_arg(ap, int));
  22.     EGB_color(work, 0, va_arg(ap, int));
  23.     va_end(ap);
  24.     EGB_connect(work, pa);
  25. }
  26.